package com.sbr.seb.planning;

import java.util.List;

import org.springframework.transaction.annotation.Transactional;

import com.sbr.seb.entity.composants.Item;
import com.sbr.seb.planning.dao.CategoryDao;

@Transactional
public class TableaudeBordService {

	private CategoryDao categoryDao;
	
	public List<Item> getItemsOfCategory(int categoryId) {
		return categoryDao.findById(categoryId).getItems();
	}
	
	
}
